<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title><?php echo $title;?></title>
</head>
<body>
<div class="c-wrap">
	<div class="head">			
			<span>BÁO CÁO KPI <img class="ent" src="http://localhost/qlc/media/images/6.png" alt=""></span>						
								
	</div>
</div>	
<?php
			ob_start();
			require_once('db.php');			
			foreach($item as $row){
				$sql=mysql_query ("select * from kpi where kpi_person = '$row[name]'");									
				$info = mysql_fetch_array($sql);				
				
				$a = $info['kpi_id'];
			
				$b = $info['kpi_name'];
				
				$c = $info['kpi_unit'];				
					
				$d = $info['kpi_person'];								
						
			}
			ob_end_flush();
			?>				
<div class="kpi-info">
		<form id="f-kpi" name="form" method="post" action="<?php foreach($item as $row) {echo base_url().'index.php/guest/checkbaocaokpi/'.$row['id'];}?>">
		<table  border="0">
		<tbody>
		<tr>					
			<td  colspan="2">
				<p style=" margin:5px 0; color: #FF0000; font:'Times New Roman', Times, serif;  font-size: 12px; font-weight: normal; "> * Thông tin báo cáo KPI:</p> 
			</td>				
		</tr>
		<tr>
			<th>
				<p>KPI Id:</p>							
        		<td style= " width: 203px; float: left; margin-left: 8px; border-radius:2px; border: 1px solid #999999; background: #FFFFFF;">
					<?php 						
							echo $a;					
					?>						
				</td>
			</th>
		</tr>	
		<tr>
			<th>
				<p>Mô tả:</p>							
        		<td style= " width: 203px; float: left; margin-left: 8px; border-radius:2px; border: 1px solid #999999; background: #FFFFFF;">
					<?php echo $b;
					?>										
				</td>
			</th>
		</tr>		
		<tr>
			<th>
				<p>Số lượng hoàn thành:</p>							
        		<td>
					<input name="txtkpifn" type="text" id="txtunit" />															
				</td>
			</th>
		</tr>			
		
		<tr>
       		<td>&nbsp;</td>
        	<td><label>
				<input name="bt-reg" type="submit" id="bt-kpi" value=" Báo cáo "/>					
   		</tr>		
		</tbody>
		</table>
		</form>
</div>
</body>
</html>
